<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{sfzxjlForm.bundleName}"/>
    <head>
        <title>#{text['sfzxjlDetail.title']}</title>
        <meta name="heading" content="#{text['sfzxjlDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="sfzxjlForm">

<h:form id="sfzxjlForm" onsubmit="return validateSfzxjlForm(this)">
<h:inputHidden id="id" value="#{sfzxjlForm.sfzxjl.id}"/>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="xh" value="#{text['sfzxjl.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{sfzxjlForm.sfzxjl.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zxfs" value="#{text['sfzxjl.zxfs']}"/>
    <t:message for="zxfs" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zxfs" value="#{sfzxjlForm.sfzxjl.zxfs}" required="false" maxlength="500">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zxjg" value="#{text['sfzxjl.zxjg']}"/>
    <t:message for="zxjg" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zxjg" value="#{sfzxjlForm.sfzxjl.zxjg}" required="false" maxlength="500">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zxrq" value="#{text['sfzxjl.zxrq']}"/>
    <t:message for="zxrq" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zxrq" value="#{sfzxjlForm.sfzxjl.zxrq}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zxyy" value="#{text['sfzxjl.zxyy']}"/>
    <t:message for="zxyy" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zxyy" value="#{sfzxjlForm.sfzxjl.zxyy}" required="false" maxlength="500">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{sfzxjlForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty sfzxjlForm.sfzxjl.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{sfzxjlForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Sfzxjl')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateSfzxjlForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('sfzxjlForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
